const mongoose = require('mongoose');

const InventorySchema = new mongoose.Schema({
  productMetadata: {
    masterId: {type: String, required: true},
    version: {type: Number, required: true, default: 0}
  },
  fulfillmentCenterId: {type: String, required: true},
  quantity: {type: Number, required: true},
  restockDate: {type: Date, required: true},
}, {collection: 'Price', timestamps: true});

mongoose.model('InventorySchema', InventorySchema);